<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	SoptHashMap hm = RequestManager.getRequest(request);
%>
<%@page import="comm.util.SoptHashMap"%>
<%@page import="comm.util.RequestManager"%>


<div>
	<h2>Styldaco 입찰하기</h2>
	<div><input type="button" value="닫기" onclick="javascript:self.close();"></div>
	<div><%=hm.get("GOODS_NAME") %></div>
	<div>현재 입찰 수 : <%=hm.get("TENDER_COUNT") %></div>
	
	<%if(session.getAttribute("SESSION_MEMBER_SEQ")!=null){ %>
		<form method="post" action="">
			<input type="hidden" name="tender_goods_seq" value="<%=hm.get("GOODS_SEQ")%>">
			입찰할 땅콩 : <input name="tender_cost" type="text" value="1">
			<input type="submit" value="입찰하기">
		</form>
		<div><%=hm.toString() %></div>
	<%}else{%>
		<div>입찰 하시려면 로그인 해주세요:)<input type="button" value="로그인" onclick="javascript:opener.getLoginForm();self.close();"></div>
	<%} %>
</div>


<%if(hm.get("TENDER_RESULT")!=null && hm.get("TENDER_RESULT").toString().length()>0){ %>
<div id="tenderResultLayer" style="display: none;">
	입찰 처리 화면
	<%=hm.get("TENDER_RESULT") %>
</div>

<script type="text/javascript">document.getElementById('tenderResultLayer').style.display='block';</script>
<%}%>